//
//  UIView+Frame.m
//  Pods
//
//  Created by 张浩 on 15/10/30.
//
//

#import "UIView+Frame.h"

@implementation UIView (Frame)
- (void)setFHeight:(CGFloat)fHeight
{
    CGRect frame = self.frame;
    frame.size.height = fHeight;
    self.frame = frame;
}

- (CGFloat)fHeight
{
    return self.frame.size.height;
}

- (void)setFWidth:(CGFloat)fWidth
{
    CGRect frame = self.frame;
    frame.size.width = fWidth;
    self.frame = frame;
}

- (CGFloat)fWidth
{
    return self.frame.size.width;
}

- (void)setFX:(CGFloat)fX
{
    CGRect frame = self.frame;
    frame.origin.x = fX;
    self.frame = frame;
}

- (CGFloat)fX
{
    return self.frame.origin.x;
}

- (void)setFY:(CGFloat)fY
{
    CGRect frame = self.frame;
    frame.origin.y = fY;
    self.frame = frame;
}

- (CGFloat)fY
{
    return self.frame.origin.y;
}

- (void)setFCenterX:(CGFloat)fCenterX
{
    CGPoint center = self.center;
    center.x = fCenterX;
    self.center = center;
}

- (CGFloat)fCenterX
{
    return self.center.x;
}

- (void)setFCenterY:(CGFloat)fCenterY
{
    CGPoint center = self.center;
    center.y = fCenterY;
    self.center = center;
}

- (CGFloat)fCenterY
{
    return self.center.y;
}
@end
